<?php
namespace Mp\Auth;

use Illuminate\Support\Facades\Auth;
use App\Models\SysUser;

class Permission{

	//
	public static function check($permission){
		$id = Auth::guard('admin')->id();

		return SysUser::find($id)->can($permission);
		
	}


	public static function error(){
		return response('无权限');
	}
	
}